<%@page pageEncoding="UTF-8" contentType="text/html; charset=utf-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<HTML>
<HEAD>
<TITLE>尚学堂学员论坛--登录</TITLE>
<META http-equiv=Content-Type content="text/html; charset=utf-8">
<Link rel="stylesheet" type="text/css" href="style/style.css"/>
<script language="javascript">
function check() {
 if(document.loginForm.uName.value==""){
    alert("用户名不能为空");
    return false;
 }
 if(document.loginForm.uPass.value==""){
    alert("密码不能为空");
    return false;
 }
}
</script>
</HEAD>

<BODY>
<%@include file="_head.jsp" %>
<BR/>
<!--      导航        -->
<DIV>
	&gt;&gt;<B><a href="index.html">论坛首页</a></B>
</DIV>
<!--      用户登录表单        -->
<DIV class="t" style="MARGIN-TOP: 15px" align="center">
	<FORM name="loginForm" onSubmit="return check()" action="user" method="post">
	<input type="hidden" name="method" value="login"> 
		<br/>用户名 &nbsp;<INPUT class="input" tabIndex="1"  type="text"      maxLength="20" size="35" name="uName">
		<p/>密　码 &nbsp;<INPUT class="input" tabIndex="2"  type="password"  maxLength="20" size="40" name="uPass">
		<p/><INPUT class="btn"  tabIndex="6"  type="submit" value="登 录">&nbsp;<INPUT class="btn"  tabIndex="6"  type="reset" value="重置">
	</FORM>
</DIV>
<!--      声明        -->
<BR/>
<CENTER class="gray">版权所有 2005-2011　北京尚学堂科技有限公司</CENTER>
</BODY>
<c:if test="${not empty param.error and param.error eq 'usererror' }">
<script>alert("用户名错误！")</script>
</c:if>
<c:if test="${not empty param.error and param.error eq 'passerror' }">
<script>alert("密码错误！")</script>
</c:if>
<c:if test="${not empty param.error and param.error eq 'paramerror' }">
<script>alert("参数错误！")</script>
</c:if>
</HTML>